﻿@model SpaceNeedle.City6473.Web.Data.Models.UsersAuthentication
@using SpaceNeedle.City6473.Web.Data.Models

@{
    var staticContent = ViewBag.StaticContent as WebSiteContent;
    ViewBag.Title = staticContent.Users.PageTitle;
}

<h2>@staticContent.Users.New</h2>
    
    <div>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>

                <div class="editor-label">
                    @Html.Label(staticContent.Users.Name)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Name, null, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Name)
                </div>

                <div class="editor-label">
                    @Html.Label(staticContent.Users.Email)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Email, null, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Email)
                </div>

                <div class="editor-label">
                    @Html.Label(staticContent.Users.Password)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Password, null, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Password)
                </div>

                <div class="editor-label">
                    @Html.Label(staticContent.Users.Roles)
                </div>
                <div class="editor-field">
                    @Html.DropDownList("RolesList", null, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Roles)
                </div>
                <br />
                <p>
                    <div class="btn btn-default">
                        <button style="border: none; background-color:transparent" type="button" onclick="location.href='@Url.Action("Index", "User")'">
                            @*<img src="~/Content/images/Back.png">*@ @staticContent.Operations.Back
                        </button>
                    </div>

                    <div class="btn btn-default">
                        <button style="border: none; background-color:transparent" type="submit" value="">
                            @*<img src="~/Content/images/Save.png">*@ @staticContent.Operations.Save
                        </button>
                    </div>
                </p>
            </fieldset>
        }
    </div>
    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    
}